package cn.tedu.spring.homework3;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test01 {
    @Test
    public void test010()
    {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("beans.xml");
        Demo demo=(Demo) applicationContext.getBean("demo");
        System.out.println(demo);
        ((ClassPathXmlApplicationContext)applicationContext).close();
    }
}
